package com.hua.struct;

import java.util.Scanner;

public class IfDemo01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入内容");
        String s = scanner.nextLine();

        if(s.equals("hello")){//判断字符串是否一样
            System.out.println(s);

        }
        System.out.println("end!");








        scanner.close();
    }






}
